import asyncRoutesData from "../../mock/asyncRoutes.json";

type Result = {
  success: boolean;
  data: Array<any>;
};

export const getAsyncRoutes = () => {
  return new Promise<Result>(resolve => {
    // 使用静态数据模拟异步路由获取
    const mockResult: Result = {
      success: true,
      data: asyncRoutesData
    };
    resolve(mockResult);
  });
};
